package com.xzit.xzitexprement2.Service.Impl;

import com.xzit.xzitexprement2.Mapper.coursesMapper;
import com.xzit.xzitexprement2.Pojo.courses;
import com.xzit.xzitexprement2.Service.coursesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class coursesServiceImpl implements coursesService {
    @Autowired
    private coursesMapper coursesmapper;
    @Override
    public List<courses> listAll() {
        return coursesmapper.listAll();
    }

    @Override
    public List<courses> getById(Integer cid) {
        return coursesmapper.getById(cid);
    }

    @Override
    public void add(courses courses) {
        coursesmapper.add(courses);
    }
}
